package classes.events
{
	import classes.MySqlStatus;
	
	import flash.events.Event;
	
	public class MySqlResultEvent extends Event
	{
		public static const MYSQL_RESULT:String = "mysqlResult";
		
		public var result:Object;
		public var details:String;
		public var status:String;
				
		
		public function MySqlResultEvent( type:String, result:Object )
		{
			super(type);
			
			if( result.result )
			{			
				this.result = result.result;
			}			
			else
			{
				this.result = null;
			}
			
			this.details = result.details;
			this.status = result.status;
		}
		

		override public function clone():Event 
		{
            return new MySqlResultEvent( type, result );
        }
	}
}